
import java.util.Scanner;

/**
 * Keafmd
 *
 * @ClassName: Demo1
 * @Description: Demo1
 * @author: lijl
 * @date: 2022/12/11 14:24
 * @Blog: https://keafmd.blog.csdn.net/
 */

public class Demo1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入人数：");
        int num = scanner.nextInt();
        double[] score = new double[num];
        double sum = 0;
        for(int i = 0;i<num;i++){
            System.out.println("请输入第"+(i+1)+"个人的信息");
            score[i] = scanner.nextDouble();
            sum += score[i];
        }
        System.out.println("平均成绩是:"+sum/num);
    }
}
